home *** CD-ROM | disk | FTP | other *** search
- Code examples by David Grogono:
-
- Jan 30, 2001
-
- These are examples are I made when I was teaching myself REALbasic.
- I would probably do some things better and cleverer if I started from scratch,
- but even as is the code will likely help demonstrate how to use certain features.
-
-
- Polygon:
- This is a fairly comprehensive example.
- It just allows you to display a polygon and adjust attributes from a tool palette.
- Things it does:
- Multiple Documents with a windows menu
- Seperate floating tool palette
- Save, SaveAs, Open, New and double clicking of a saved file
- Page Setup, Print
- Copy, Paste, internally and pasting a picture to other apps
- Multiple Undos and Redos (artifical limit of 100)
- Drag and Drop from one window to another.
- Drag a clipping to the desktop and back again (MacData is attached)
-
- Multi Document:
- Just a basic sample app for multiple Documents and a windows menu.
-
- Calendar Window Example:
- Demonstrates one way of calling another window and getting a result back.
-
- PrimePanMagicSquares:
- An example I wrote quickly to show my Dad how easy and powerful REALbasic is.
-
- Window with breaking glass:
- Probably the most fun of the examples, based on a trick from Matt Neuburg's
- book on capturing screen pixels before the window is drawn. This trick did not
- work on win32, so this example is Mac only.